package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 模型管理对象 model
 * 
 * @author zqh
 * @date 2022-06-30
 */
public class Model extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String modelName;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 阈值 */
    @Excel(name = "阈值")
    private Double threshold;

    /** 是否使用GPU（是/否） */
    @Excel(name = "是否使用GPU", readConverterExp = "是=/否")
    private String gpu;

    /** GPUid */
    @Excel(name = "GPUid")
    private Long gpuId;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 引擎 */
    @Excel(name = "引擎")
    private String modelEngine;

    /** 状态（有效/无效） */
    @Excel(name = "状态", readConverterExp = "有=效/无效")
    private String modelCondition;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdateTime;

    /** 文件 */
    private String file;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setModelName(String modelName) 
    {
        this.modelName = modelName;
    }

    public String getModelName() 
    {
        return modelName;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setThreshold(Double threshold) 
    {
        this.threshold = threshold;
    }

    public Double getThreshold() 
    {
        return threshold;
    }
    public void setGpu(String gpu) 
    {
        this.gpu = gpu;
    }

    public String getGpu() 
    {
        return gpu;
    }
    public void setGpuId(Long gpuId) 
    {
        this.gpuId = gpuId;
    }

    public Long getGpuId() 
    {
        return gpuId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setModelEngine(String modelEngine) 
    {
        this.modelEngine = modelEngine;
    }

    public String getModelEngine() 
    {
        return modelEngine;
    }
    public void setModelCondition(String modelCondition) 
    {
        this.modelCondition = modelCondition;
    }

    public String getModelCondition() 
    {
        return modelCondition;
    }
    public void setLastUpdateTime(Date lastUpdateTime) 
    {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getLastUpdateTime() 
    {
        return lastUpdateTime;
    }
    public void setFile(String file) 
    {
        this.file = file;
    }

    public String getFile() 
    {
        return file;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("modelName", getModelName())
            .append("description", getDescription())
            .append("threshold", getThreshold())
            .append("gpu", getGpu())
            .append("gpuId", getGpuId())
            .append("type", getType())
            .append("modelEngine", getModelEngine())
            .append("modelCondition", getModelCondition())
            .append("lastUpdateTime", getLastUpdateTime())
            .append("file", getFile())
            .toString();
    }
}
